package com.atyun;

import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * 暂未启用
 * 增强拒绝策略接口
 * @Author: 云水瑶
 * @Date: 2025/5/1
*/
public interface EnhanceRejectedExecutionHandler extends RejectedExecutionHandler {
    default void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
        rejectedExecution(r, executor, null);
    }

    void rejectedExecution(Runnable r, ThreadPoolExecutor executor, DptExecutor.ExecutorContext context);
}
